package com.lancoo.cvas.mapper;

import com.lancoo.cvas.config.MybatisRedisCache;
import com.lancoo.cvas.entity.ClassInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.CacheNamespace;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * 拆班班级
 * 
 * @author liufeng
 * @email 1037383243@qq.com
 * @date 2023-12-04 11:54:00
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface ClassInfoMapper extends BaseMapper<ClassInfo> {

    void addBatch(List<ClassInfo> classInfos);

    List<ClassInfo> getClassName(Integer taskId);

    List<ClassInfo> getClassNameTerm(List<Integer> taskIds);

    List<ClassInfo> getClassInfoByTaskIds(List<Integer> taskIds);

    List<ClassInfo> getAllClass(Integer taskId, String gradeId);
}
